package com.youths.service;

import com.github.pagehelper.PageInfo;
import com.youths.domain.YouthInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/6/24
 */
public interface YouthInfoService {
    int addYouthInfo(String youthCardId,
                     String youthName,
                     Integer youthSex,
                     String youthAddress,
                     String youthPlace,
                     String youthNation,
                     Date youthBirth,
                     Float youthMotherHeight,
                     Float youthFatherHeight,
                     Integer consumerID,
                     Integer state);

    int update(Integer youthId,
               String youthName,
               String youthAddress,
               Float youthFatherHeight,
               Float youthMotherHeight,
               Integer state);

    boolean check(Integer consumerId, Integer youthId);

    YouthInfo queryYouthInfo(Integer youthId);

    List<YouthInfo> getInfoList(Integer consumerId);

    PageInfo getYouthInfoList(Integer pageNum, Integer youthId, String name, String card, String account);

    String updateYouthInfo(Integer youthId, String cardId, String name, Integer sex, String address, String place, String nation, Integer fatherHeight, Integer motherHeight, Integer state);
}
